package com.yuyou.activity.util.enums;

public class SmsGroupSPSuccMessEnums {

	public enum Mess_type{
		GroupBuy01SP_0("GroupBuy01SP" , 0 ,"恭喜您成功拼团购买反三科线上课程！马上添加老师，抢先获取专属课程讲义哦！微信号：ZY-gaozhong。"),
		GroupBuy01SP_1("GroupBuy01SP" , 1 ,"恭喜您成功拼团购买反三科线上课程！马上添加老师，抢先获取专属课程讲义哦！微信号：ZY-gaozhong。"),
		
		GroupBuy02SP_0("GroupBuy02SP" , 0 ,"您已成功拼团购买【秒杀中考高频易错点】课程！马上添加老师（微信号zychushenggao），回复【听课】，立即获得听课链接及配套真题！"),
		GroupBuy02SP_1("GroupBuy02SP" , 1 ,"您已成功拼团购买【秒杀中考高频易错点】课程！马上添加老师（微信号zychushenggao），回复【听课】，立即获得听课链接及配套真题！");

		Mess_type(String key,Integer type , String value){
			this.key=key;
			this.type = type;
			this.value=value;
		}
		private String key;
		public String getKey() {
			return key;
		}

		private Integer type;
		public Integer getType() {
			return type;
		}

		private String value;
		public String getValue() {
			return value;
		}

		public  static String getValByKey(String key , Integer type){
			for(Mess_type m:Mess_type.values()){
				if(m.getKey().equals(key) && m.getType() == type){
					return m.getValue();
				}
			}

			return "";
		}

	}



}
